home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 4_17.lha / 4_17 / 4_17a1.h < prev    next >
C/C++ Source or Header  |  1993-08-08  |  679b  |  37 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  6. * The C++ Answer Book */
  7. * Tony Hansen */
  8. * All rights reserved. */
  9. / table.h
  10. /
  11. / Declarations for a symbol table.
  12. / Based on code in section 3.1.3
  13.  
  14. ifndef TABLE_H
  15.  define TABLE_H
  16.  
  17. truct name
  18.  
  19.    char* string;
  20.    name* next;
  21.    union
  22.        {
  23. void* ptable;
  24. double dtable;
  25. long ltable;
  26. };
  27.    short inuse;
  28. ;
  29.  
  30. / look up a value
  31. ame* look(char* p, int ins = 0);
  32.  
  33. / a pseudonym to insert a value
  34. nline name* insert(char* s)
  35.  return look(s, 1); }
  36. endif /* TABLE_H */
  37.